﻿using 为web添加unity.caching在controller中注入.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace 为web添加unity.caching在controller中注入.Repository
{
    public class UserRepository : RepositoryBase, IUserRepository
    {
        public UserRepository(EEE114Entities db)
            : base(db)
        {

        }
        public IEnumerable<Models.User_Info> Fetch(System.Linq.Expressions.Expression<Func<Models.User_Info, bool>> predicate, int skip, int count)
        {
            return DB.User_Info.OrderBy(i => i.UserID).Skip(skip).Take(count);
        }
        public IQueryable<User_Info> GetModel()
        {
            return DB.User_Info;
        }
    }
}